<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateStudentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('student', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->default('')->comment('姓名');
            $table->date('birthday')->comment('生日');
            $table->integer('begin_control')->comment('控涨前度数');
            $table->integer('after_control')->comment('控涨后度数');
            $table->integer('control_plan')->comment('控涨方案');
            $table->integer('control_result')->comment('控涨结果');
            $table->integer('today_plan')->comment('今日项目');
            $table->string('member_id')->default('')->comment('会员编号');
            $table->string('card_id')->default('')->comment('身份证号');
            $table->integer('score')->comment('积分');
            $table->tinyInteger('sex')->comment('性别');
            $table->string('phone')->default('')->comment('电话');
            $table->decimal('money')->comment('余额');
            $table->string('alias')->default('')->comment('昵称');
            $table->tinyInteger('status')->comment('状态');
            $table->tinyInteger('type')->comment('类型');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('student');
    }
}
